package com.xcode.biz.service.impl;

import com.xcode.biz.dto.AddressDTO;
import com.xcode.biz.mapper.AddressMapper;
import com.xcode.biz.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author liuziying
 * @Description 地址服务
 * @Date 2020/12/24
 */
@Service
public class AddressServiceImpl implements AddressService {

    @Autowired
    AddressMapper addressMapper;

    @Override
    public AddressDTO getAddressByUserCode(String userCode) {
        return addressMapper.getAddressByUserCode(userCode);
    }
}
